package com.situ.mall.common.mapper;

import com.situ.mall.common.entity.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.mall.common.vo.OrderVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author kkkkkk
 * @since 2023-09-18
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    List<OrderVO> orderList(@Param("status") String status, @Param("keyword") String keyword, @Param("id") Integer id);

    @Update("update order_info set status = '已支付' where code = #{code}")
    void paySuccess(String code);
}
